package com.collect.tanzania.zhiScene.zhiTelemarketing.zhiPerformance.zhiSort;

import com.collect.tanzania.zhiBean.zhiReceive.ZHIRTelemarketingPerformanceEntity;

import java.util.Comparator;

public class ZHITelemarketingCompareByAssignNumASC implements Comparator<ZHIRTelemarketingPerformanceEntity> {
    @Override
    public int compare(ZHIRTelemarketingPerformanceEntity o1, ZHIRTelemarketingPerformanceEntity o2) {

        int o1DateL = o1.getAssignNumInt();
        int o2DateL = o2.getAssignNumInt();

        if (o1DateL < o2DateL) {
            return -1;
        } else if (o1DateL < o2DateL) {
            return 0;
        } else {
            return 1;
        }
    }
}
